home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsISecureBrowserUI.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  120 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISecureBrowserUI.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISecureBrowserUI_h__
  6. #define __gen_nsISecureBrowserUI_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMWindow; /* forward declaration */
  18.  
  19. class nsIDOMElement; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsISecureBrowserUI */
  23. #define NS_ISECUREBROWSERUI_IID_STR "081e31e0-a144-11d3-8c7c-00609792278c"
  24.  
  25. #define NS_ISECUREBROWSERUI_IID \
  26.   {0x081e31e0, 0xa144, 0x11d3, \
  27.     { 0x8c, 0x7c, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c }}
  28.  
  29. class NS_NO_VTABLE nsISecureBrowserUI : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISECUREBROWSERUI_IID)
  33.  
  34.   /* void init (in nsIDOMWindow window); */
  35.   NS_IMETHOD Init(nsIDOMWindow *window) = 0;
  36.  
  37.   /* readonly attribute unsigned long state; */
  38.   NS_IMETHOD GetState(PRUint32 *aState) = 0;
  39.  
  40.   /* readonly attribute AString tooltipText; */
  41.   NS_IMETHOD GetTooltipText(nsAString & aTooltipText) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSISECUREBROWSERUI \
  47.   NS_IMETHOD Init(nsIDOMWindow *window); \
  48.   NS_IMETHOD GetState(PRUint32 *aState); \
  49.   NS_IMETHOD GetTooltipText(nsAString & aTooltipText); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSISECUREBROWSERUI(_to) \
  53.   NS_IMETHOD Init(nsIDOMWindow *window) { return _to Init(window); } \
  54.   NS_IMETHOD GetState(PRUint32 *aState) { return _to GetState(aState); } \
  55.   NS_IMETHOD GetTooltipText(nsAString & aTooltipText) { return _to GetTooltipText(aTooltipText); } 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  58. #define NS_FORWARD_SAFE_NSISECUREBROWSERUI(_to) \
  59.   NS_IMETHOD Init(nsIDOMWindow *window) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(window); } \
  60.   NS_IMETHOD GetState(PRUint32 *aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
  61.   NS_IMETHOD GetTooltipText(nsAString & aTooltipText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTooltipText(aTooltipText); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsSecureBrowserUI : public nsISecureBrowserUI
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSISECUREBROWSERUI
  72.  
  73.   nsSecureBrowserUI();
  74.  
  75. private:
  76.   ~nsSecureBrowserUI();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsSecureBrowserUI, nsISecureBrowserUI)
  84.  
  85. nsSecureBrowserUI::nsSecureBrowserUI()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsSecureBrowserUI::~nsSecureBrowserUI()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* void init (in nsIDOMWindow window); */
  96. NS_IMETHODIMP nsSecureBrowserUI::Init(nsIDOMWindow *window)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* readonly attribute unsigned long state; */
  102. NS_IMETHODIMP nsSecureBrowserUI::GetState(PRUint32 *aState)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* readonly attribute AString tooltipText; */
  108. NS_IMETHODIMP nsSecureBrowserUI::GetTooltipText(nsAString & aTooltipText)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* End of implementation class template. */
  114. #endif
  115.  
  116. #define NS_SECURE_BROWSER_UI_CONTRACTID "@mozilla.org/secure_browser_ui;1"
  117. #define NS_SECURE_BROWSER_UI_CLASSNAME "Mozilla Secure Browser UI Handler"
  118.  
  119. #endif /* __gen_nsISecureBrowserUI_h__ */
  120.